import Layout from "@/layout/Layout";

export const staticRoutes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    redirect: "/home",
    children: [
      {
        path: '/role',
        name: 'Role',
        component: () => import("@/views/Role"),
      },
      {
        path: '/permission',
        name: 'Permission',
        component: () => import("@/views/Permission"),
      },
      {
        path: '/home',
        name: 'Home',
        component: () => import("@/views/Home"),
      },
      {
        path: '/user',
        name: 'User',
        component: () => import("@/views/User"),
      },
      {
        path: '/book',
        name: 'Book',
        component: () => import("@/views/Book"),
      },
      {
        path: '/news',
        name: 'News',
        component: () => import("@/views/News"),
      },
      {
        path: '/person',
        name: 'Person',
        component: () => import("@/views/Person"),
      },
      {
        path: '/category',
        name: 'Category',
        component: () => import("@/views/Category"),
      },
      {
        path: '/password',
        name: 'Password',
        component: () => import("@/views/Password"),
      },
      {
        path: '/map',
        name: 'Map',
        component: () => import("@/views/Map"),
      },
      {
        path: '/im',
        name: 'Im',
        component: () => import("@/views/Im"),
      },
      {
        path: '/message',
        name: 'Message',
        component: () => import("@/views/Message"),
      },
      {
        path: '/donate',
        name: 'Donate',
        component: () => import("@/views/Donate"),
      },
      {
        path: '/order',
        name: 'Order',
        component: () => import("@/views/Order"),
      }
    ]
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import("@/views/Login")
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import("@/views/Register")
  },


]
